package app

import (
	"encoding/json"
	"fmt"
	"time"

	"github.com/go-resty/resty/v2"
)

func Post(url string, body interface{}) (string, error) {
	byteBody, _ := json.Marshal(body)
	_, err := resty.New().SetTimeout(time.Second*30).R().
		SetHeader("Content-Type", "application/json;charset=UTF-8").SetBody(byteBody).Post(url)

	if err != nil {
		return "", err
	}

	return "", nil
}

func Process() {
	fmt.Printf("123")

}
